package com.cn.bulu.service;

import javax.servlet.http.HttpServletRequest;

import org.springframework.transaction.annotation.Transactional;

import com.cn.bulu.pojo.Goods;
import com.cn.bulu.utils.BuluResult;

@Transactional
public interface WorkerService {
	// 注册
	public BuluResult register(/*String phone, String password*/String account);

	// 判断手机号是否可以用
	public BuluResult isPhone(String phone);

	// 完善工人信息
	public BuluResult completeWorkerData(Integer workerId, String name, String province, String city,
			String workerSpaces, String headImg, Integer workerAge);

	// 修改密码
	public BuluResult updateWorkerPassword(/*String phone, String password*/String account);

	// 登录
	public BuluResult login(/*String phone, String password*/String account, String imei, HttpServletRequest request);

	// 修改头像
	public BuluResult updateHeadImg(HttpServletRequest request, String headImg);

	// 查询可接订单
	public BuluResult selectKejie(HttpServletRequest request, Integer type);

	// 点击我要接单
	public BuluResult binging(HttpServletRequest request, Integer indentId);

	// 查询已接订单
	public BuluResult YesBinding(HttpServletRequest request, Integer type);

	// 查询我的钱包
	public BuluResult selectWallet(HttpServletRequest request);

	// 放弃订单扣除金额
	public BuluResult updateWallet(HttpServletRequest request, Integer indentId);

	// 工人点击出发
	public BuluResult insertJingwei(Integer indentId, String jingdu, String weidu);

	// 查询可接订单各个类型数量
	public BuluResult selectKejieNumber(HttpServletRequest request);

	// 查询已接各个类型订单数量
	public BuluResult selectYijie(HttpServletRequest request);

	// 查询已完成订单
	public BuluResult selectYiwcheng(HttpServletRequest request, Integer type, Integer page);

	// 根据订单号查询详情
	public BuluResult selectXiangqing(Integer indentId);

	// 查询安装位置和布纱安装情况
	public BuluResult selectLBS();

	// 查询应扣款
	public BuluResult selectPenalties(HttpServletRequest request,Integer indentId);

	// 查询提现明细
	public BuluResult selectMingxi(HttpServletRequest request,Integer page);

	public BuluResult updateXinxi(HttpServletRequest request, String idnumber, String boundBank, String bankNumber,
			String imgs);

	// 工人提交信息界面
	public BuluResult updateTijiao(Goods goods, String bumishu, String shamishu, String toumishu, String cimgs,String finishShade);

	// 更改手机号
	public BuluResult updatePhone(HttpServletRequest request, String password);

	// 查看头像
	public BuluResult selectTouxiang(String phone);

	// 根据商品号查询商品信息
	public BuluResult selectGoodxinxi(Integer goodsId);

	// 测量填写信息查询布特殊图
	public BuluResult selectTeshu();

	// 查询广告
	public BuluResult selectGuanggao();

	// 意见反馈
	public BuluResult insertWenti(HttpServletRequest request, String problemCount, String imgs);

	// 查询帘头图片
	public BuluResult selectSheadheadImg();

	// 根据sampleId查询宽高限制
	public BuluResult selectXianzhi(Integer sampleId);

	// 订单中添加商品
	public BuluResult insertGoods(Integer indentId, Goods goods);

	// 删除订单中商品
	public BuluResult deleteGoods(Integer goodsId);

	// 添加安装图片
	public BuluResult insertATupian(String specialImgs);

	// 添加维修图片
	public BuluResult insertWTupian(Integer specialId, String imgs);

	// 消息中心
	public BuluResult selectMessage(Integer page);

	// 更改手机号
	public BuluResult updatePhone2(HttpServletRequest request, String phone);

	// 查询银行卡
	public BuluResult selectBank(HttpServletRequest request);

	// 添加银行卡
	public BuluResult insertBank(HttpServletRequest request, String boundBank, String bankNumber);

	// 设为默认银行卡
	public BuluResult updateBank(HttpServletRequest request, Integer bankCardId);

	// 删除银行卡
	public BuluResult deleteBank(Integer bankCardId);

	// 查询版权信息
	BuluResult selectCopyright();

	// 查询说明
	BuluResult selectAboutMe();

	// 查询软件使用许可协议
	BuluResult selectVersionIntroduce();

	// 查询平台服务协议
	BuluResult selectAgreement();

	// 添加成品帘安装图片
	BuluResult insertInstallImgs(Integer goodsId, String installImgs);

	// 验证码验证成功之后改变订单状态 并给工人钱包加钱
	public BuluResult updateIndent(HttpServletRequest request, Integer indentId);

	// 申请提现
	public BuluResult submitWithdrawal(HttpServletRequest request, Double money, Integer bankCardId);

	// 查询个人信息
	public BuluResult selectWorker(HttpServletRequest request);

	// 修改工作区域updateWorkerAddress
	public BuluResult updateWorkerSpaces(HttpServletRequest request, String workerSpaces);
	
	// 修改工人的地址
	public BuluResult updateWorkerAddress(HttpServletRequest request,String province,String city,String area);

	// 工人支付宝充值
	public BuluResult submitRecarge(HttpServletRequest request, Double money, Integer cashInter);

	// 工人提现到支付宝
	public BuluResult alipyWithdrawal(HttpServletRequest request, Double money, String zhifubao, String name,
			String password, Integer status);

	// 工人第一次被提现验证身份审核
	public BuluResult auditPresentation(HttpServletRequest request, String alipyCode, String idCard, String faceIDCard,
			String backIDCard);

	// 查询鹿客学院消息
	// public BuluResult selectCollegeMsg(HttpServletRequest request);

}
